<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>验收阶段--验收报告form</title>

    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--extended-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/jquery.boot.js"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
    <script type="text/javascript" src="${re.contextPath}/pageoffice.js" id="po_js_main"></script>
</head>
<style>
    .windows {
        background-color: #f8f8f8;
    }

    .popUp {
        width: 90%;
    }


</style>

<body>
<div class="windows">

    <div class="popUp whitebg">
        <div class="popUpTitle ft24 bold">验收报告</div>
        <div class="clearfix mt10">
            <span class="fl">SDZZ-QR030</span>
        </div>
        <div class="popUpBox book">

            <form action="" class="layui-form addform">

                <div class="popUpBox acceptance">
                    <table>
                        <input type="hidden" name="spfPrjid" value="${spf_prjid}">
                        <input type="hidden" name="fileInd" value="${ind}">
                        <input type="hidden" name="spfStaid" value="${spf_staid}">
                        <input type="hidden" name="spfMilid" value="${spf_milid}">
                        <input type="hidden" name="projectName" value="${pdto.projectName}">
                        <input type="hidden" name="spfFilecode" value="${spfFilecode}">
                        <input type="hidden" name="bfcId" value="40">
                        <input type="hidden" name="orderCode" value="${orderCode}">
                        <input type="hidden" name="fbCode" value="${fbCode}">
                        <input type="hidden" name="pcId" value="${pcId}">
                        <input type="hidden" name="wjNum" value="${wjNum}">
                         <input type="hidden" name="spfF23" id="spfF23" value="${pdto.projectName}"
                                  style="width: 20%;">
                        <input type="hidden" name="spfF24" id="spfF24" value="${cy}"
                               style="width: 20%;">
                        <input type="hidden" name="spfF25" id="spfF25" value="${fbcode}"
                               style="width: 20%;">
                        <tr>
                            <td colspan="2">根据 <input name="spfF1" lay-verify="spfF1" style=" width:20%;"  value=""
                                                      class="border_style_xh"  vtext="合同不能为空" type="text"> 合同，合同编号:(<input name="spfF2"
                                                                                                           lay-verify="spfF2"
                                                                                                           class="border_style_xh" vtext="合同编号不能为空"
                                                                                                           style=" width:20%;"  value=""
                                                                                                           type="text">)，承建方<input
                                        name="spfF3" lay-verify="spfF3"  vtext="承建方不能为空" class="border_style_xh" style=" width:20%;" value=""
                                        type="text"> 完成 <input name="spfF4" lay-verify="spfF4" class="border_style_xh" vtext="不能为空"
                                                               style=" width:20%;" type="text">的建设任务。并通过自检，达到项目验收的条件。业主方<input
                                        name="spfF5" lay-verify="spfF5" class="border_style_xh"
                                        value="${pdto.owerCompany}" style=" width:20%;" type="text"  vtext="不能为空">、监理方<input
                                        name="spfF6" lay-verify="spfF6" style=" width:20%;"
                                        value="${pdto.supervisorCompanyName}" class="border_style_xh" type="text"  vtext="监理方不能为空">
                                和承建方<input name="spfF7" lay-verify="spfF7" class="border_style_xh" style=" width:20%;"  vtext="承建方不能为空"
                                           type="text">组成项目验收小组进行了验收。
                                现将验收情况做如下总结：
                            </td>
                        </tr>
                        <tr>
                            <td>一．验收时间</td>
                            <td>
                                <input id="spfF8" name="spfF8"  autocomplete="off"  lay-verify="spfF8" style=" width:20%;"
                                       class="border_style_xh" type="text">
                            </td>
                        </tr>

                        <tr>
                            <td>二．参与人员</td>
                            <td>
                                <div>业主方： <input name="spfF9" lay-verify="spfF9" style=" width:50%;" vtext="业主方不能为空"
                                                 value="${pdto.owerCompany}"
                                                 class="border_style_xh" type="text"></div>
                                <div>监理方：<input name="spfF10" lay-verify="spfF10" style=" width:50%;" vtext="监理方不能为空"
                                                value="${pdto.supervisorCompanyName}"
                                                class="border_style_xh" type="text"></div>
                                <div>承建方：<input name="spfF11" lay-verify="spfF11" style=" width:50%;"  vtext="承建方不能为空"
                                                class="border_style_xh" type="text"></div>
                            </td>
                        </tr>
                        <tr>
                            <td>三．验收内容</td>
                            <td>
                                本次<input name="spfF12" lay-verify="spfF12" style=" width:20%;" class="border_style_xh"
                                         type="text" vtext="请填写合同">
                                合同（合同编号： <input name="spfF13" lay-verify="spfF13" style=" width:20%;"
                                                class="border_style_xh" type="text" vtext="请填写合同编号" > ）的验收内容，包括：
                                <textarea name="spfF14" lay-verify="spfF14"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>四．验收依据</td>
                            <td>招标文件，投标文件。<input name="spfF15" lay-verify="spfF15" style=" width:20%;"
                                                 class="border_style_xh" type="text" vtext="请填写合同">
                                合同（合同编号：<input name="spfF16" lay-verify="spfF16" style=" width:20%;"
                                               class="border_style_xh" type="text" vtext="请填写合同"> ）。
                            </td>
                        </tr>
                        <tr>
                            <td>五．验收方法</td>
                            <td>
                                <textarea name="spfF17" lay-verify="spfF17"></textarea>
                            </td>
                        </tr>
                        <tr style="height: 600px;">
                            <td>六．验收结论</td>
                            <td>
                                <ul>
                                    <li class="clearfix">根据以上验收工作情况，经验收小组认真讨论一致认为本工程本阶段验收：</li>
                                    <li class="clearfix">
                                        <div class="layui-col-md3" style="height: 36px">
                                            验收内容
                                            <select style="border: 1px  solid red;" name="spfF18" >
                                                <option selected="true">完整</option>
                                                <option>不完整</option>
                                            </select>
                                        </div>
                                    <li class="clearfix">
                                        <div class="layui-col-md3" style="height: 36px;margin-top: 30px;">
                                            验收依据
                                            <select style="border: 1px  solid red;" name="spfF19" >
                                                <option selected="true">充分</option>
                                                <option>不充分</option>
                                            </select>
                                        </div>

                                    </li>
                                    <li class="clearfix">
                                        <div class="layui-col-md3" style="height: 36px;margin-top: 30px;">
                                            验收方法及流程：
                                            <select style="border: 1px  solid red;" name="spfF20" >
                                                <option selected="true">符合项目要求</option>
                                                <option>不符合项目要求</option>
                                            </select>
                                        </div>
                                    </li>
                                    <li class="clearfix">
                                        <div class="layui-col-md3" style="height: 36px;margin-top: 30px;"
                                           >
                                            验收记录：
                                            <select style="border: 1px  solid red;" name="spfF21">
                                                <option selected="true">可信</option>
                                                <option>不可信</option>
                                            </select>
                                        </div>
                                    <li class="clearfix">
                                        <div class="layui-col-md3" style="height: 36px;margin-top: 30px;"
                                             >
                                            验收结论：
                                            <select style="border: 1px  solid red;"  name="spfF22">
                                                <option selected="true">合格</option>
                                                <option>不合格</option>
                                            </select>
                                        </div>
                                </ul>
                                本报告一式三份,业主单位,监理单位,承建单位各一份
                            </td>
                        </tr>
                    </table>

                </div>
                <div class="popUpBtn center">
                    <button type="button" class="blue bgnone close">关闭</button>
                    <button type="button" class="bluebg white" lay-submit lay-filter="submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>


<script>
    var layer;
    var form;
    var laydate;
    var upload;
    var uploadListIns;
    layui.use(['form', 'laydate', 'layer', 'upload'], function () {
        layer = layui.layer;
        form = layui.form;
        laydate = layui.laydate;
        upload = layui.upload;
        // 日期
        laydate.render({
            elem: '#spfF8',
            value: new Date(),
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });
        uploadListIns = upload.render({
            elem: '.uploadimg',
            url: '/supervisor/projectManager/addFile2222222', //改成您自己的上传接口
            accept: 'file',
            data: null,
            multiple: true,
            auto: false,
            choose: function (obj) {
                var files = obj.pushFile();
                obj.preview(function (index, file, result) {
                    $('#lcimage').attr('src', result); //图片链接（base64）
                });
            },
            before: function () {


            },
            done: function (res, index, upload) {

            },
            error: function (index, upload) {

                layer.msg("上传失败！");
            }
        });
        // 表单校验
        //$('form').initVerify(form);
        //监听提交
        form.on('submit(submit)', function (data) {
            layerAjax('/supervisor/projectManager/addFormFile', data.field, '', function (d) {
                if (d.flag == true) {
                    var spfId = d.data.spfId;// fmid
                    var fpid = d.data.fpid;// fpid
                    POBrowser.openWindowModeless('/sys/office/openword?ft=2&fmid=' + spfId + '&fpid=' + fpid, 'width=1200px;height=800px;', '{}')
                } else {
                    layer.msg(d.msg, {icon: 2});
                }
                console.log(d);
            });
            return false;

        });

        $('.close').click(function () {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        });
        form.render();


    });

</script>


<!-- 底部结束 -->
</body>
</html>
